<?php

namespace app\controller;

use app\BaseController;
use app\model\UserModel;

class ApiBaseController extends BaseController
{
    protected int $pageIndex;
    protected int $pageSize;

    protected function initialize()
    {
        $this->pageIndex = param_filter($this->request->param('page_index', 0), 'int');
        $this->pageSize = param_filter($this->request->param('page_size', 10), 'int');
    }
}
